<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <!-- Navigator -->
    <!-- https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator -->
    <!-- Navigator 接口表示用户代理的状态和标识。 它允许脚本查询它和注册自己进行一些活动。 -->
    <!-- 可以使用只读的 window.navigator 属性检索navigator对象。 -->

    <p>Navigator.appName</p>
    <!-- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appName -->
    <!-- Deprecated: This feature is no longer recommended. -->
    <!-- The value of the Navigator.appName property is always "Netscape", in any browser. This property is kept only for compatibility purposes. -->
    <script>
        console.log('navigator.appName is ' + navigator.appName);
    </script>
    <hr>

    <p>Navigator.appVersion</p>
    <!-- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion -->
    <!-- Deprecated: This feature is no longer recommended. -->
    <!-- Returns either "4.0" or a string representing version information about the browser. -->
    <script>
        console.log('navigator.appVersion is ' + navigator.appVersion);
    </script>
    <hr>

    <p>Navigator.appCodeName</p>
    <!-- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appCodeName -->
    <!-- The value of the Navigator.appCodeName property is always "Mozilla", in any browser. This property is kept only for compatibility purposes. -->
    <script>
        console.log('navigator.appCodeName is ' + navigator.appCodeName);
    </script>

    <p>Navigator.userAgent</p>
    <!-- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent -->
    <!-- The Navigator.userAgent read-only property returns the user agent string for the current browser. -->
    <script>
        console.log('navigator.userAgent is ' + navigator.userAgent);
    </script>
    <hr>

    <p>Navigator.platform</p>
    <!-- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform -->
    <!-- Returns a string representing the platform of the browser. The specification allows browsers to always return the empty string, so don't rely on this property to get a reliable answer. -->
    <script>
        console.log('navigator.platform is ' + navigator.platform);
    </script>

    <hr style="border: solid 2px red;">

    <p>Navigator.javaEnabled()</p>
    <!-- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/javaEnabled -->
    <!-- 返回Boolean (en-US)表明浏览器是否支持Java。 -->
    <script>
        console.log('navigator.javaEnabled() is ' + navigator.javaEnabled())
    </script>
    <hr>

    <p>Navigator.taintEnabled()</p>
    <!-- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/taintEnabled -->
    <!-- The Navigator.taintEnabled() method always returns false. -->
    <script>
        console.log('navigator.javaEnabled() is ' + navigator.javaEnabled());
    </script>


</body>

</html>